#include <iostream>
#include <opencv2/opencv.hpp>

#include "stdio.h"
using namespace cv;
using namespace std;

int main(int argc, char** argv) {
  cout << "Hello world" << endl;
  Mat src = imread("../images/1.jpg");
  //显示图片
  namedWindow("source", CV_WINDOW_AUTOSIZE);
  imshow("source", src);
  //显示灰度图
  Mat Gray;
  cvtColor(src, Gray, 6);
  imshow("Gray", Gray);

  waitKey(0);

  return 0;
}